﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;
using TyMES.Model;

namespace TyMES.ViewModel.Record.BadProductRecordVMs
{
    public partial class BadProductRecordTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._BadProductRecord._factoryCode")]
        public ExcelPropety FactoryCode_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.FactoryCode);
        [Display(Name = "_Model._BadProductRecord._lineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.LineCode);
        [Display(Name = "_Model._BadProductRecord._snNumber")]
        public ExcelPropety SnNumber_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.SnNumber);
        [Display(Name = "_Model._BadProductRecord._stationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.StationCode);
        [Display(Name = "_Model._BadProductRecord._materialCode")]
        public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.MaterialCode);
        [Display(Name = "_Model._BadProductRecord._materialName")]
        public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.MaterialName);
        [Display(Name = "_Model._BadProductRecord._materialVersion")]
        public ExcelPropety MaterialVersion_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.MaterialVersion);
        [Display(Name = "_Model._BadProductRecord._operationCode")]
        public ExcelPropety OperationCode_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.OperationCode);
        [Display(Name = "_Model._BadProductRecord._defectSource")]
        public ExcelPropety DefectSource_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.DefectSource);
        [Display(Name = "_Model._BadProductRecord._UploadFlag")]
        public ExcelPropety UploadFlag_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.UploadFlag);
        [Display(Name = "_Model._BadProductRecord._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.CreateTime, true);
        [Display(Name = "_Model._BadProductRecord._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.UpdateTime, true);
        [Display(Name = "_Model._BadProductRecord._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.CreateBy);
        [Display(Name = "_Model._BadProductRecord._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<BadProductRecord>(x => x.UpdateBy);

	    protected override void InitVM()
        {
            
        }

    }

    public class BadProductRecordImportVM : BaseImportVM<BadProductRecordTemplateVM, BadProductRecord>
    {
            //import

    }

}